<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2.表格标题与对齐的处理</title>
  <link rel="stylesheet" href="1.css">
  <style>

    table {
      width: 300px;
    }
    table caption {
      background: black;
      color: white;
      padding: 10px;
      caption-side: top;
    }

    table tr td {
      height: 100px;
      text-align: center;
      vertical-align: bottom;
    }
  </style>
</head>

<body>

  <!-- 普通表格 -->
  <table border="1">
    <caption>后盾人线上视频课程</caption>
    <thead>
      <tr>
        <td>编号</td>
        <td>标题</td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>1</td>
        <td>houdunren.com</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <td>2</td>
        <td>houdunren.com2</td>
      </tr>
    </tfoot>
  </table>
</body>

</html>